
// 跟踪器和跟踪器订单状态

// 跟踪器状态
const TRACKER_STATUS = ['全部', '库存', '已出库', '监控中', '待回收', '待处理', '已作废'];

// 跟踪器使用状态
const TRACKER_USAGE_STATUS = ['', '未使用', '已使用', '已退'];

// 跟踪器订单类型
const TRACKER_ORDER_TYPES = [
    { label: '全部' },
    { label: '免租' },
    { tagType: 'success', label: '押金' },
    { tagType: 'warning', label: '补货' },
    { tagType: 'danger', label: '退货' },
];

// 跟踪器订单状态
const TRACKER_ORDER_STATUS = ['', '待发货', '已发货', '已完成', '待付款', '已关闭', '已取消', '已退款'];

// 跟踪器订单支付方式
const TRACKER_ORDER_PAYMENT_METHODS = ['', '支付宝', '微信'];

// 跟踪器回收状态
const TRACKER_RECYCLING_STATUS = ['', '待补货', '待发货'];

// 跟踪器所有状态
const TRACKER_ALL_STATUS = {
    TRACKER_STATUS,
    TRACKER_USAGE_STATUS,
    TRACKER_ORDER_TYPES,
    TRACKER_ORDER_STATUS,
    TRACKER_ORDER_PAYMENT_METHODS,
    TRACKER_RECYCLING_STATUS
}

const computed = {};

for (const key in TRACKER_ALL_STATUS) {
    computed[key] = function () {
        return TRACKER_ALL_STATUS[key];
    }
}

export const trackerStatus = {
    computed
}

